#include "app_gui.h"
#include "lcd_gui.h"
#include "lcd_device.h"
#include "pic.h"

//gui 画一个点
void gui_draw_point(unsigned short x0, unsigned short y0, unsigned short en, unsigned short color)
{
    if(en)lcd_draw_point(x0, y0, color);
}


extern const unsigned char ICON_BAR[640];
void gui_show_bar(void)
{
    uint16_t x, y;
    for(x = 0; x < 320; x++)
    {
        for(y = 0; y < 8; y++)
        {
            gui_draw_point(x, y, ICON_BAR[x*2] & (0x80 >> y), WHITE);
            gui_draw_point(x, y+8, ICON_BAR[x*2+1] & (0x80 >> y), WHITE);
        }        
    }
}
